package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 咨询类
 * </p>
 *
 * @author cy
 * @since 2020-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Message extends Model<Message> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "message_id", type = IdType.AUTO)
    private Integer messageId;

    private String messageTitle;

    private String messageContent;

    private LocalDateTime time;


    @Override
    protected Serializable pkVal() {
        return this.messageId;
    }

}
